home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / enlightenment / modules / screenshot / screenshot.edc < prev    next >
Text File  |  2006-01-09  |  2KB  |  100 lines

  1. fonts {
  2.    font: "VeraBd.ttf" "Edje-Vera-Bold";
  3. }
  4. images {
  5.     image: "module_icon.png" COMP;
  6. }
  7. collections {
  8. group {
  9.    name: "modules/screenshot/main";
  10.    max:  128 128;
  11.            script {
  12.                public it;
  13.                public global_int;
  14.                
  15.              public timer_cb(val) {
  16.                 new str[100];
  17.                 new i;
  18.                 
  19.                 i = get_int(global_int);
  20.                       snprintf(str, sizeof(str), "%d", i);
  21.                 set_text(PART:"text", str);                                
  22.                 set_int(global_int, (i - 1));
  23.                 if (i == 0) {
  24.                           snprintf(str, sizeof(str), "%s", "");
  25.                     set_text(PART:"text", str);                            
  26.                     set_state(PART:"text", "default", 0.0); 
  27.                 } else {
  28.                     it = timer(1.0, "timer_cb", global_int);
  29.                 }                        
  30.             }
  31.            
  32.            public message(Msg_Type:type, id, ...) {
  33.               if (type == MSG_INT_SET) {
  34.                       new tmp;
  35.                     tmp = getarg(2);
  36.                     set_int(global_int, tmp);
  37.                     set_state(PART:"text", "visible", 0.0);                    
  38.                     it = timer(1.0, "timer_cb", global_int);                    
  39.               }
  40.            }
  41.            }
  42.  
  43.    parts {
  44.       part {
  45.      name: "logo";
  46.      description {
  47.         state: "default" 0.0;
  48.         aspect: 1.0 1.0;
  49.         rel1 {
  50.            relative: 0.0 0.0;
  51.            offset: 0 0;
  52.         }
  53.         rel2 {
  54.            relative: 1.0 1.0;
  55.            offset: -1 -1;
  56.         }
  57.         image {
  58.            normal: "module_icon.png";
  59.         }
  60.         color:255 255 255 255;
  61.      }
  62.       }
  63.       part {
  64.           name: "text";
  65.         mouse_events: 0;
  66.         type: TEXT;
  67.         effect: SOFT_SHADOW;
  68.         description {
  69.             state: "default" 0.0;
  70.             color: 0 0 0 255;
  71.             color3: 255 255 255 255;
  72.             visible: 0;
  73.             rel1 {
  74.                 relative: 0.0 0.0;
  75.                 offset: 0 0;            
  76.                 to: "logo";
  77.             }
  78.             rel2 {
  79.                 relative: 1.0 1.0;
  80.                 offset: -1 -1;            
  81.                 to: "logo";
  82.             }
  83.             text {
  84.                 text: "";
  85.                 font: "Edje-Vera-Bold";
  86.                 size: 18;
  87.                 min:      1 1;                
  88.                 align: 0.5 0.5;
  89.             }
  90.         }
  91.         description {
  92.             state: "visible" 0.0;
  93.             inherit: "default" 0.0;
  94.             visible: 1;
  95.         }
  96.       }
  97.    }
  98. }
  99. }
  100.